package com.ruoyi.journal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.journal.mapper.BfxDepartmengtMapper;
import com.ruoyi.journal.domain.BfxDepartmengt;
import com.ruoyi.journal.service.IBfxDepartmengtService;

/**
 * 部门表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
@Service
public class BfxDepartmengtServiceImpl implements IBfxDepartmengtService 
{
    @Autowired
    private BfxDepartmengtMapper bfxDepartmengtMapper;

    /**
     * 查询部门表
     * 
     * @param id 部门表主键
     * @return 部门表
     */
    @Override
    public BfxDepartmengt selectBfxDepartmengtById(Long id)
    {
        return bfxDepartmengtMapper.selectBfxDepartmengtById(id);
    }

    /**
     * 查询部门表列表
     * 
     * @param bfxDepartmengt 部门表
     * @return 部门表
     */
    @Override
    public List<BfxDepartmengt> selectBfxDepartmengtList(BfxDepartmengt bfxDepartmengt)
    {
        return bfxDepartmengtMapper.selectBfxDepartmengtList(bfxDepartmengt);
    }

    /**
     * 新增部门表
     * 
     * @param bfxDepartmengt 部门表
     * @return 结果
     */
    @Override
    public int insertBfxDepartmengt(BfxDepartmengt bfxDepartmengt)
    {
        return bfxDepartmengtMapper.insertBfxDepartmengt(bfxDepartmengt);
    }

    /**
     * 修改部门表
     * 
     * @param bfxDepartmengt 部门表
     * @return 结果
     */
    @Override
    public int updateBfxDepartmengt(BfxDepartmengt bfxDepartmengt)
    {
        return bfxDepartmengtMapper.updateBfxDepartmengt(bfxDepartmengt);
    }

    /**
     * 批量删除部门表
     * 
     * @param ids 需要删除的部门表主键
     * @return 结果
     */
    @Override
    public int deleteBfxDepartmengtByIds(Long[] ids)
    {
        return bfxDepartmengtMapper.deleteBfxDepartmengtByIds(ids);
    }

    /**
     * 删除部门表信息
     * 
     * @param id 部门表主键
     * @return 结果
     */
    @Override
    public int deleteBfxDepartmengtById(Long id)
    {
        return bfxDepartmengtMapper.deleteBfxDepartmengtById(id);
    }
}
